package cn.stylefeng.guns.modular.course.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户课程
 * </p>
 *
 * @author typ
 * @since 2021-04-27
 */
@TableName("yy_customer_course")
@Data
public class CustomerCourse implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("customer_id")
    private Integer customerId;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("course_id")
    private Integer courseId;

    @TableField("video_id")
    private Integer videoId;

    @TableField("expire_date")
    private Date expireDate;

    @TableField("order_id")
    private Integer orderId;

    @TableField(exist = false)
    private Course course;


    @Override
    public String toString() {
        return "CustomerCourse{" +
        "id=" + id +
        ", customerId=" + customerId +
        ", createTime=" + createTime +
        ", courseId=" + courseId +
        ", videoId=" + videoId +
        ", expireDate=" + expireDate +
        "}";
    }
}
